import {
  get,
  post,
  put,
  del
} from './request.js'



export const getSwiperList = (params) => {
  return get({
    url: 'public/v1/home/swiperdata',
    ...params
  })
}

export const getNavList = (params)=>{
  return get({
    url:'public/v1/home/catitems',
    ...params
  })
}

export const getFloorList=(params)=>{
  return get({
    url:'public/v1/home/floordata',
    ...params
  })
}

export const getCateList=(params)=>{
  return get({
    url:'/public/v1/categories',
    ...params
  })
}

export const getSearchList = (params)=>{
  return get({
    url:'/public/v1/goods/qsearch',
    ...params
  })
}

export const getGoodsList = (params)=>{
  return get({
    url:'/public/v1/goods/search',
    ...params
  })
}


export const getGoodsDetail=(params)=>{
  return get({
    url:'/public/v1/goods/detail',
    ...params
  })
}